SIMAIKA.H
/****************************************************/
/* */
/* includes */
/* */
/****************************************************/
#if !defined (SIMAIKADLL)
#define SIMAIKADLL
#include
#include
#include
#include
#include
#include //REGSTR_MAX_VALUE_LENGTH
/****************************************************/
/* */
/* typedef */
/* */
/****************************************************/
typedef BOOL (CALLBACK *PROCENUMPROC)( DWORD, WORD, LPSTR, LPARAM );
// Type definitions for pointers to call tool help functions.
typedef BOOL (WINAPI *MODULEWALK)(HANDLE hSnapshot,
LPMODULEENTRY32 lpme);
typedef BOOL (WINAPI *THREADWALK)(HANDLE hSnapshot,
LPTHREADENTRY32 lpte);
typedef BOOL (WINAPI *PROCESSWALK)(HANDLE hSnapshot,
LPPROCESSENTRY32 lppe);
typedef HANDLE (WINAPI *CREATESNAPSHOT)(DWORD dwFlags, DWORD th32ProcessID);
typedef BOOL (WINAPI *HEAPLISTWALK)(HANDLE hSnapshot, LPHEAPLIST32 lphl);
typedef BOOL (WINAPI *HEAPFIRST)(LPHEAPENTRY32 lphe, DWORD th32ProcessID, DWORD th32HeapID);
typedef BOOL (WINAPI *HEAPNEXT)(LPHEAPENTRY32 lphe);
typedef BOOL (WINAPI *READPROCESSMEMORY)
(DWORD th32ProcessID,LPCVOID lpBaseAddress,
LPVOID lpBuffer,DWORD cbRead,
LPDWORD lpNumberOfBytesRead);
typedef BOOL (WINAPI *PROCESSOR) (DWORD ProcessorFeature );
typedef BOOL (WINAPI *WNDSTYLEPROC)(HWND hWnd, LPCSTR , LPARAM);
typedef LRESULT (CALLBACK *QUERYPROC)(IN HWND, IN LPCSTR , IN OPTIONAL int level=0,IN OPTIONAL DWORD type=0);
typedef bool (CALLBACK *FILEPROC)(IN HWND, IN LPCSTR );
typedef LRESULT (CALLBACK *ADPPROC)(IN HWND, IN OUT LPCOMPONENT);
typedef bool (CALLBACK *DIRPROC)(IN HWND, IN LPCSTR ); /* 5.8.2000 */
/****************************************************/
/* */
/* defines */
/* */
/****************************************************/
#define FTMOD 1
#define FTACC 2
#define FTCRE 3
#define ID_PRINT 3333
#define WW_SEARCHCASE 8
#define WW_SEARCHDN 10
#define CSTR_EQUAL 2
#define szCompare(a, b) CompareString(LOCALE_SYSTEM_DEFAULT, 0, a, -1, b, -1)
#define szCompareN(dw, a, b) CompareString(LOCALE_SYSTEM_DEFAULT, dw, a, -1, b, -1)
// Makes it easier to determine appropriate code paths:
#if defined (WIN32)
#define IS_WIN32 TRUE
#else
#define IS_WIN32 FALSE
#endif
#define IS_NT IS_WIN32 && (BOOL)(GetVersion() < 0x80000000)
#define IS_WIN32S IS_WIN32 && (BOOL)(!(IS_NT) && (LOBYTE(LOWORD(GetVersion()))<4))
#define IS_WIN95 (BOOL)(!(IS_NT) && !(IS_WIN32S)) && IS_WIN32
extern "C" __declspec ( dllimport ) DWORD WINAPI GetOSVersion(void);
#define IsNT (GetOSVersion()==VER_PLATFORM_WIN32_NT)
#define LD_USEDESC 0x00000001
#define LD_USEARGS 0x00000002
#define LD_USEICON 0x00000004
#define LD_USEWORKDIR 0x00000008
#define LD_USEHOTKEY 0x00000010
#define LD_USESHOWCMD 0x00000020
typedef struct
{ // Mandatory members
LPTSTR pszPathname; // Pathname of original object
DWORD fdwFlags; // LD_* flags ORed together for optional members
// Optional members
LPTSTR pszDesc; // Description of link file (its filename)
LPTSTR pszArgs; // command-line arguments
LPTSTR pszIconPath; // Pathname of file containing the icon
int nIconIndex; // Index of icon in pszIconPath
LPTSTR pszWorkingDir;// Working directory when process starts
int nShowCmd; // How to show the initial window
WORD wHotkey; // Hot key for the link
} LINKDATA, *PLINKDATA;
/****************************************************/
/* */
/* globals */
/* */
/****************************************************/
static const int BUFLEN = 1024;
/* global search string */
static char lpszSearch[BUFLEN] = "";
static HWND hDlgSearch;
static FINDREPLACE frSearch={0};
static UINT uSearchMsg = RegisterWindowMessage ((char *)FINDMSGSTRING);;
// File scope globals. These pointers are declared because of the need
// to dynamically link to the functions. They are exported only by
// the Windows 95 kernel. Explicitly linking to them will make this
// application unloadable in Microsoft(R) Windows NT(TM) and will
// produce an ugly system dialog box.
__declspec( dllimport ) PROCESSOR pIsProcessorFeaturePresent;
__declspec( dllimport ) CREATESNAPSHOT pCreateToolhelp32Snapshot;
__declspec( dllimport ) MODULEWALK pModule32First;
__declspec( dllimport ) MODULEWALK pModule32Next;
__declspec( dllimport ) PROCESSWALK pProcess32First ;
__declspec( dllimport ) PROCESSWALK pProcess32Next ;
__declspec( dllimport ) THREADWALK pThread32First ;
__declspec( dllimport ) THREADWALK pThread32Next ;
__declspec( dllimport ) HEAPFIRST pHeap32First ;
__declspec( dllimport ) HEAPNEXT pHeap32Next ;
__declspec( dllimport ) HEAPLISTWALK pHeap32ListFirst ;
__declspec( dllimport ) HEAPLISTWALK pHeap32ListNext ;
__declspec( dllimport ) READPROCESSMEMORY pToolhelp32ReadProcessMemory ;
// PSAPI Function Pointers.
__declspec( dllimport ) BOOL (WINAPI *lpfEnumProcesses)( DWORD *, DWORD cb, DWORD * ) ;
__declspec( dllimport ) BOOL (WINAPI *lpfEnumProcessModules)( HANDLE, HMODULE *, DWORD, LPDWORD ) ;
__declspec( dllimport ) DWORD (WINAPI *lpfGetModuleFileNameEx)( HANDLE, HMODULE, LPTSTR, DWORD ) ;
// VDMDBG Function Pointers.
__declspec( dllimport ) INT (WINAPI *lpfVDMEnumTaskWOWEx)( DWORD, TASKENUMPROCEX fp, LPARAM ) ;
__declspec( dllimport ) HINSTANCE hPSAPI ;
__declspec( dllimport ) HINSTANCE hVDMDBG ;
__declspec( dllimport ) char g_szAppName[BUFLEN];
__declspec( dllimport ) DWORD dwPlatformId,dwMajor, dwMinor,dwOSMajor, dwOSMinor;
__declspec( dllimport ) bool bIsWindows98orLater;
__declspec( dllimport ) char g_szHexFile[MAX_PATH];
__declspec( dllimport ) char g_szPrintTitle[MAX_PATH];
/****************************************************/
/* */
/* w32utils.h prototypes for w32utils.cpp */
/* */
/****************************************************/
//extern "C"
//{
extern "C" __declspec( dllimport ) bool WINAPI OpenFileName (HWND , LPCSTR , LPSTR , bool bSave=false);
extern "C" __declspec( dllimport ) BOOL WINAPI EnumProcs ( PROCENUMPROC , LPARAM ) ;
extern "C" __declspec( dllimport ) HWND WINAPI FindDialog (IN HWND , IN LPFINDREPLACE , IN char *, IN DWORD dwFlags=FR_HIDEUPDOWN|FR_HIDEMATCHCASE|FR_HIDEWHOLEWORD);
extern "C" __declspec( dllimport ) bool WINAPI GetFileDescription (IN char *, OUT char *);
extern "C" __declspec( dllimport ) bool WINAPI RecursiveFileSearch(HWND hDlg, LPCSTR , LPCSTR , FILEPROC , DIRPROC fpDirProc=NULL);
extern "C" __declspec( dllimport ) bool WINAPI IsFile (LPCTSTR );
extern "C" __declspec( dllimport ) BOOL WINAPI Static_SetLong (HWND , long , bool sign=true);
extern "C" __declspec( dllimport ) void WINAPI FilePopupMenu ( HWND );
extern "C" __declspec( dllimport ) void WINAPI WaitCursor (bool bWait=true);
extern "C" __declspec( dllimport ) LPTSTR WINAPI GetStringRes (int);
//extern "C" __declspec( dllimport ) LRESULT CALLBACK GetMsgProc(int , WPARAM , LPARAM ) ;
extern "C" __declspec( dllimport ) HWND WINAPI DoCreateTooltip (HWND , HWND *, HHOOK *, HOOKPROC) ;
extern "C" __declspec( dllimport ) BOOL CALLBACK EnumDlgWindowsProc(HWND , LPARAM );
//extern "C" __declspec( dllimport ) BOOL CALLBACK EnumCalendarInfoProc( LPTSTR );
extern "C" __declspec( dllimport ) bool WINAPI SetPrivileges (void);
extern "C" __declspec( dllimport ) DWORD WINAPI GetError (LPCTSTR , LPCTSTR lpFile="SIMAIKA", LPCTSTR lpFunction=NULL, BOOL bNet=FALSE);
extern "C" __declspec( dllimport ) DWORD WINAPI ShowError (DWORD , LPCTSTR , LPCTSTR lpFile="SIMAIKA", LPCTSTR lpFunction=NULL, BOOL bNet=FALSE);
extern "C" __declspec( dllimport ) BOOL WINAPI InitToolhelp32 (void);
extern "C" __declspec( dllimport ) BOOL WINAPI FindProcessInfoHwnd (HWND , LPPROCESSENTRY32 );
extern "C" __declspec( dllimport ) BOOL WINAPI FindProcessInfo (DWORD , LPPROCESSENTRY32 );
extern "C" __declspec( dllimport ) bool WINAPI FindModuleInfo (DWORD , DWORD , LPMODULEENTRY32 );
extern "C" __declspec( dllimport ) void WINAPI LogMessage (LPCTSTR ,LPCTSTR );
extern "C" __declspec( dllimport ) int WINAPI GetMaxLBWidthPels (HWND );
extern "C" __declspec( dllimport ) HRESULT WINAPI GetComCtlVersion(LPDWORD , LPDWORD );
extern "C" __declspec( dllimport ) HTREEITEM WINAPI TreeView_AddString(const HWND , LPCSTR , const HTREEITEM hInsert=TVI_LAST, const HTREEITEM hParent=NULL, const LPARAM lParam=0, const int iImage=-1);
extern "C" __declspec( dllimport ) HTREEITEM WINAPI TreeView_Search(HWND , int , LPSTR , HTREEITEM hBranch=NULL);
extern "C" __declspec( dllimport ) bool WINAPI GetFileDateTime (LPCSTR , LPSTR ,
const unsigned long ulDateType=DATE_LONGDATE,
const unsigned long ulTimeType=TIME_FORCE24HOURFORMAT,
int type=FTMOD);
extern "C" __declspec( dllimport ) bool WINAPI GetFTDateTime (LPFILETIME , LPSTR,const unsigned long ulDateType=DATE_LONGDATE);
//user-defined callbacks for enumeration
extern "C" __declspec( dllimport ) int WINAPI ComboBoxEx_AddString (HWND, LPCSTR,int iImage=0);
extern "C" __declspec( dllimport ) HIMAGELIST WINAPI ComboBoxEx_SetImageList(HWND , HIMAGELIST );
extern "C" __declspec( dllimport ) HICON WINAPI GetFileIcon (LPCSTR , HWND );
extern "C" __declspec( dllimport ) BOOL WINAPI InitPSAPI (void);
extern "C" __declspec( dllimport ) DWORD WINAPI StartProcess (LPCSTR , LPCSTR szCmdLine=NULL); //26.8.99
extern "C" __declspec( dllimport ) bool WINAPI FindFile (LPSTR ); //27.8.99
extern "C" __declspec( dllimport ) bool WINAPI CopyTextToClipboard (HWND , LPCSTR ); //10.10.1999
extern "C" __declspec( dllimport ) int WINAPI MessageBoxIcon (HWND , LPCSTR , LPCSTR , UINT , UINT );//10.10.1999
extern "C" __declspec( dllimport ) HICON WINAPI GetFileIconN (LPCSTR , HWND , int );
extern "C" __declspec( dllimport ) int WINAPI ListView_AddString (HWND , LPCSTR , LPARAM lParam=-1, LPCSTR szSubItem1=NULL, LPCSTR szSubItem2=NULL, LPCSTR szSubItem3=NULL,int nImage=-1);
extern "C" __declspec( dllimport ) int WINAPI ListView_SetOptimalColumnWidth( HWND , INT );
extern "C" __declspec( dllimport ) long WINAPI ListView_RotateView ( HWND hListView); //12.3.2000
extern "C" __declspec( dllimport ) DWORD WINAPI GetDllVersion (LPCTSTR ); //14.1.2000
extern "C" __declspec( dllimport ) bool WINAPI InputBox (IN HWND hDlg, IN OUT LPSTR lpText, IN OUT LPSTR lpPwd=NULL); //27.8.2000
extern "C" __declspec ( dllexport ) bool WINAPI GetLogFileName (LPSTR lpPath); //12.11.2000
/****************************************************/
/* */
/* WINDOW */
/* */
/****************************************************/
extern "C" __declspec( dllimport ) bool WINAPI EnumWindowStyles (HWND , WNDSTYLEPROC , LPARAM );
extern "C" __declspec( dllimport ) BOOL WINAPI CenterWindow (HWND , HWND hwndParent=NULL);
extern "C" __declspec( dllimport ) void WINAPI DescribeWindow (HWND , LPSTR );
extern "C" __declspec( dllimport ) void WINAPI DescribeWindowEx (HWND , LPSTR );
/****************************************************/
/* */
/* 31.10.1999 registry */
/* */
/****************************************************/
extern "C" __declspec( dllimport ) bool WINAPI RegWritePrivateProfileString(IN LPCSTR ,IN LPCSTR , IN LPCSTR , IN bool bFailOnExists=false); //31.10.1999
extern "C" __declspec( dllimport ) bool WINAPI RegWriteProfileString (IN LPCSTR , IN LPCSTR , IN LPCSTR , IN bool bFailOnExists=false);
extern "C" __declspec( dllimport ) bool WINAPI RegWritePrivateProfileInt (IN LPCSTR , IN LPCSTR , LPDWORD , IN bool bFailOnExists=false);
extern "C" __declspec( dllimport ) bool WINAPI RegWriteProfileInt (IN LPCSTR , IN LPCSTR , LPDWORD , IN bool bFailOnExists=false);
extern "C" __declspec( dllimport ) UINT WINAPI RegGetPrivateProfileInt (IN LPCSTR , IN LPCSTR , IN UINT );
extern "C" __declspec( dllimport ) UINT WINAPI RegGetProfileInt (IN LPCSTR , IN LPCSTR , IN UINT );
extern "C" __declspec( dllimport ) bool WINAPI RegGetPrivateProfileString (IN LPCSTR , IN LPCSTR , IN LPCSTR , OUT LPSTR );
extern "C" __declspec( dllimport ) bool WINAPI RegGetProfileString (IN LPCSTR , IN LPCSTR , IN LPCSTR , OUT LPSTR );
extern "C" __declspec( dllimport ) VOID WINAPI RegQueryKeyValues (IN HWND , IN HKEY , IN LPCSTR , IN QUERYPROC ,IN HTREEITEM );
extern "C" __declspec( dllimport ) VOID WINAPI RegQuerySubkeys (IN HWND , IN HKEY , IN LPCSTR , IN LPCSTR , QUERYPROC ,IN OPTIONAL int level=0,IN OPTIONAL int maxlevel=0);
extern "C" __declspec( dllimport ) bool WINAPI RegConvertKeyDataToString (LPBYTE , DWORD , LPSTR , DWORD,IN DWORD dwStrSize=REGSTR_MAX_VALUE_LENGTH-1 );
extern "C" __declspec( dllimport ) bool WINAPI MergeINI (LPCSTR lpFile); /*5.1.2000*/
extern "C" __declspec( dllimport ) bool WINAPI UnMergeINI (LPCSTR lpFile); /*14.10.2000*/
extern "C" __declspec( dllimport ) bool WINAPI GetExtensionNameCLSID (IN LPCSTR lpExt, OUT LPSTR lpName, OUT LPSTR lpCLSID=NULL, OUT LPSTR lpDesc=NULL); //6.8.2000
extern "C" __declspec( dllimport ) bool WINAPI AddEventSource (IN LPCSTR szApp, IN LPCSTR szDLL); //1.11.2000
extern "C" __declspec( dllimport ) bool WINAPI WriteToEventLog (LPCSTR szApp, DWORD dwEventID, WORD wType=EVENTLOG_ERROR_TYPE); //1.11.2000
/****************************************************/
/* */
/* SHELL32 */
/* */
/****************************************************/
extern "C" __declspec( dllimport ) VOID WINAPI ShellGetSettings (LPSHELLFLAGSTATE, DWORD);
extern "C" __declspec( dllimport ) BOOL WINAPI ShellInvokePrinterCommand ( HWND , UINT , LPCTSTR , LPCTSTR , BOOL );
extern "C" __declspec( dllimport ) HRESULT WINAPI ShellQueryRecycleBin (LPCTSTR , LPSHQUERYRBINFO );
extern "C" __declspec( dllimport ) HRESULT WINAPI ShellEmptyRecycleBin (HWND , LPCTSTR , DWORD );
extern "C" __declspec( dllimport ) HRESULT WINAPI Shell_CreateLink (LPCTSTR , PLINKDATA ); /*25.4.2000*/
extern "C" __declspec( dllimport ) bool WINAPI ShellCreateExt (LPCSTR, LPCSTR, LPCSTR , LPCSTR,LPCSTR lpContent=NULL);/*25.4.2000*/
extern "C" __declspec( dllimport ) bool WINAPI ShellCreateAppIdOption (LPCSTR, LPCSTR, LPCSTR, LPCSTR );/*25.4.2000*/
extern "C" __declspec( dllimport ) HRESULT WINAPI ShellGetSpecialFolderPath(HWND , LPTSTR , int , BOOL fCreate=0); //10.7.2000
extern "C" __declspec( dllimport ) HRESULT WINAPI ShellGetSpecialFolderLocation(HWND , LPTSTR, int, LPITEMIDLIST *); //16.7.2000
extern "C" __declspec( dllimport ) HRESULT WINAPI ADSetDesktopWallpaper(LPCSTR, DWORD dwStyle=0); //16.7.2000
extern "C" __declspec( dllimport ) HRESULT WINAPI ADGetDesktopWallpaper(LPSTR, LPDWORD ); //16.7.2000
extern "C" __declspec( dllimport ) HRESULT WINAPI ADEnumDeskItems (HWND , ADPPROC );
extern "C" __declspec( dllimport ) int WINAPI ShellFileOperation (LPSHFILEOPSTRUCT ); //17.7.2000
extern "C" __declspec( dllimport ) HRESULT WINAPI Shell_ResolveLink (HWND , LPCSTR , LPSTR, LPSTR , LPSTR , int *, LPSTR );
/****************************************************/
/* */
/* NETAPI */
/* */
/****************************************************/
extern "C" __declspec( dllimport ) NET_API_STATUS WINAPI NetworkBufferFree(LPVOID );
extern "C" __declspec( dllimport ) NET_API_STATUS WINAPI NetworkQueryDisplayInformation(LPCWSTR ServerName, DWORD Level, DWORD Index, DWORD EntriesRequested, DWORD PreferredMaximumLength, LPDWORD ReturnedEntryCount, PVOID *SortedBuffer);
extern "C" __declspec( dllimport ) NET_API_STATUS WINAPI NetworkMessageNameEnum(LPCWSTR servername, DWORD level, LPBYTE *bufptr, DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries, LPDWORD resume_handle);
/****************************************************/
/* */
/* printing */
/* */
/****************************************************/
extern "C" __declspec( dllimport ) HDC WINAPI GetPrinterDC (void);
extern "C" __declspec( dllimport ) HDC WINAPI GetDefaultPrinterDC (void); //27.1.1999
extern "C" __declspec( dllimport ) bool WINAPI OnPrintListViewbyID (const HWND, const int, const char *, const bool bDefault=0);
extern "C" __declspec( dllimport ) bool WINAPI OnPrintListView (const HWND, const char *, const bool bDefault=0);//generic 13.1.1999
extern "C" __declspec( dllimport ) bool WINAPI PrintBuf (const HDC , const char *);
extern "C" __declspec( dllimport ) bool WINAPI OnPrintTreebyID (const HWND, int, const char *, const bool bDefault=0);
extern "C" __declspec( dllimport ) bool WINAPI OnPrintTree (const HWND, const char *, const bool bDefault=0);
extern "C" __declspec( dllimport ) bool WINAPI OnPrintLBbyID (const HWND, const int, const char *, const bool bDefault=0);
extern "C" __declspec( dllimport ) bool WINAPI OnPrintLB (const HWND, const char *, const bool bDefault=0);
extern "C" __declspec( dllimport ) bool WINAPI OnPrintLBbyID2HTML (const HWND, const int, const char *); /* 26.2.2000 */
extern "C" __declspec( dllimport ) bool WINAPI OnPrintLB2HTML (const HWND, const char *); /* 26.2.2000 */
extern "C" __declspec( dllimport ) bool WINAPI PrepareHTMLHeader (FILE *fh, const char *, const char *, const char *lpHeader2=NULL, const char *lpHeader3=NULL, const char *lpHeader4=NULL, const char *lpHeader5=NULL, const char *lpHeader6=NULL );/* 26.2.2000 */
extern "C" __declspec( dllimport ) bool WINAPI OnPrintListViewbyID2HTML(const HWND, const int, const char *); /* 26.2.2000 */
extern "C" __declspec( dllimport ) bool WINAPI OnPrintListView2HTML(const HWND, const char *); /* 26.2.2000 */
extern "C" __declspec( dllimport ) bool WINAPI CloseHTML (FILE *fh, const char *lpTitle); /* 4.3.2000 */
extern "C" __declspec( dllimport ) bool WINAPI OnPrintTreebyID2HTML(const HWND hPageDlg, const int wID, const char *docName); //11.11.2000
extern "C" __declspec( dllimport ) bool WINAPI OnPrintTree2HTML(const HWND hTree, const char *docName); //11.11.2000
/****************************************************/
/* */
/* STRINGS */
/* */
/****************************************************/
extern "C" __declspec( dllimport ) int WINAPI StringFromGuidA (REFIID , LPSTR );
extern "C" __declspec( dllimport ) bool WINAPI StringReplace (IN OUT char *, IN const char *, IN const char *);/*21.1.2000*/
extern "C" __declspec( dllimport ) LPSTR WINAPI Left (IN LPCSTR , IN const unsigned int , OUT LPSTR );//7.8.2000
extern "C" __declspec( dllimport ) LPSTR WINAPI Right (IN LPCSTR , IN const unsigned int , OUT LPSTR );//7.8.2000
extern "C" __declspec( dllimport ) LPSTR WINAPI Mid (IN LPCSTR , IN const unsigned int , IN const unsigned int , OUT LPSTR );//7.8.2000
extern "C" __declspec( dllimport ) LPTSTR WINAPI SafeStrcpy (LPTSTR lpszString1, LPTSTR lpszString2) ;
extern "C" __declspec ( dllimport ) BOOL WINAPI ConvertString(LPTSTR pszOut, LPWSTR pwszIn, DWORD dwSize);
/****************************************************/
/* */
/* MAPI */
/* 12.8.2000 */
/****************************************************/
extern "C" __declspec( dllimport ) ULONG WINAPI MailLogon(HWND , LPTSTR , LPTSTR , FLAGS , LPLHANDLE );
extern "C" __declspec( dllimport ) ULONG WINAPI MailLogoff(LHANDLE , HWND , FLAGS flags=0);
extern "C" __declspec( dllimport ) ULONG WINAPI GetMailError(ULONG );
extern "C" __declspec( dllimport ) ULONG WINAPI MailSendMail(LHANDLE , HWND , MapiMessage , MapiRecipDesc , FLAGS );
extern "C" __declspec( dllimport ) ULONG WINAPI MailFindNext(IN LHANDLE , IN HWND , IN LPTSTR , IN LPTSTR , IN FLAGS , OUT LPTSTR );
extern "C" __declspec( dllimport ) ULONG WINAPI MailAddress(LHANDLE lhSession,HWND hDlg,LPTSTR lpszCaption,
ULONG nEditFields,LPTSTR lpszLabels,ULONG nRecips,
lpMapiRecipDesc lpRecips,FLAGS flFlags,LPULONG lpnNewRecips,
lpMapiRecipDesc FAR * lppNewRecips);
extern "C" __declspec( dllimport ) ULONG WINAPI MailReadMail(IN LHANDLE lhSession,
IN HWND hDlg, IN LPTSTR lpszMessageID, FLAGS flMsgFlags,
IN OUT lpMapiMessage FAR * lppMessage);
extern "C" __declspec( dllimport ) ULONG WINAPI MailDetails(LHANDLE lhSession, HWND hDlg, lpMapiRecipDesc lpRecip, FLAGS flFlags);
extern "C" __declspec( dllimport ) ULONG WINAPI MailFreeBuffer(LPVOID );
/****************************************************/
/* */
/* Windows Sockets */
/* 15.10.2000 */
/****************************************************/
extern "C" __declspec( dllimport ) int WINAPI WinSockStartup( WORD wVersionRequested, LPWSADATA lpWSAData);
extern "C" __declspec( dllimport ) int WINAPI WinSockEnumProtocols(LPINT lpiProtocols, LPWSAPROTOCOL_INFO lpProtocolBuffer, LPDWORD lpdwBufferLength);
extern "C" __declspec( dllimport ) int WINAPI WinSockGetLastError(void);
extern "C" __declspec( dllimport ) int WINAPI WinSockCleanup(void);
/****************************************************/
/* */
/* Versioning */
/* 13.11.2000 */
/****************************************************/
extern "C" __declspec ( dllimport ) BOOL WINAPI bIsWindowsVersionOK(OUT DWORD dwMajor, OUT DWORD dwMinor=0, OUT WORD dwSPMajor=0);
extern "C" __declspec ( dllimport ) DWORD WINAPI GetFileAttr(LPCSTR lpFile, WIN32_FILE_ATTRIBUTE_DATA *wf);
//} //extern "C"
#endif